import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseTreeWalker;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;


public class main
{
    public static void main(String[] args)
    {
        IrGenerator irGenerator = new IrGenerator("C:/usr/projects/go_parser/run/src");
        AsmGenerator asmGenerator = new AsmGenerator(irGenerator);
        try
        {
            irGenerator.buildPackages();
            irGenerator.generateIr();
            irGenerator.printIr();
            asmGenerator.printAsm();
        }
        catch (IllegalAccessException | IOException e)
        {
            e.printStackTrace();
        }
    }
}
